.class Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;
.super Landroid/widget/BaseAdapter;
.source "LinePassByStation.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/teewoo/app/bus/ui/LinePassByStation;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MyLinePassByAdapter"
.end annotation


# instance fields
.field inflater:Landroid/view/LayoutInflater;

.field final synthetic this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;


# direct methods
.method public constructor <init>(Lcom/teewoo/app/bus/ui/LinePassByStation;Landroid/content/Context;)V
    .locals 1
    .parameter
    .parameter "context"

    .prologue
    .line 318
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    .line 316
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 317
    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;->inflater:Landroid/view/LayoutInflater;

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 321
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$10(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .parameter "position"

    .prologue
    .line 325
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$10(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .parameter "position"

    .prologue
    .line 329
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .parameter "position"
    .parameter "view"
    .parameter "parent"

    .prologue
    .line 333
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;->inflater:Landroid/view/LayoutInflater;

    const v3, 0x7f030011

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 334
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$11(Lcom/teewoo/app/bus/ui/LinePassByStation;)[I

    move-result-object v2

    rem-int/lit8 v3, p1, 0x2

    aget v2, v2, v3

    invoke-virtual {p2, v2}, Landroid/view/View;->setBackgroundColor(I)V

    .line 335
    const v2, 0x7f0a003e

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 336
    .local v1, txView:Landroid/widget/TextView;
    const v2, 0x7f0a003f

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 337
    .local v0, fromView:Landroid/widget/TextView;
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$10(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/Line;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Line;->getName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "\\("

    invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    aget-object v2, v2, v3

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 338
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v2, "\u8d77\u70b9\u7ad9:"

    invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$10(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/Line;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Line;->getFrom_station()Lcom/teewoo/app/bus/model/Station;

    move-result-object v2

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\t\u7ec8\u70b9\u7ad9:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v3}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$10(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/teewoo/app/bus/model/Line;

    invoke-virtual {p0}, Lcom/teewoo/app/bus/model/Line;->getTo_station()Lcom/teewoo/app/bus/model/Station;

    move-result-object v3

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 339
    return-object p2
.end method
